<template>
    <div class="two">
        <h2>第二组件</h2>
    </div>
</template>

<script setup>
import bus from "../bus/index";
import {onMounted} from "vue"
onMounted(() => {
    bus.on('sendFn', (res) => {
        console.log(res, '传递的数据');
    })
})

</script>

<style>

</style>
